home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1993 September
/
September 93.iso
/
Archives
/
Sound
/
MIDI
/
MIDI Utilities
/
CMU Midi Toolkit
/
Includes
/
midicode.h
< prev
next >
Wrap
Text File
|
1987-01-10
|
575b
|
26 lines
/* midicode.h -- various MIDI constants and macros */
#define MIDI_DATA(d) (0x7f & (d))
#define MIDI_CHANNEL(c) (0x0f & ((c) - 1))
#define MIDI_PROGRAM(p) MIDI_DATA((p) - 1)
#define MIDI_CODE_MASK 0xf0
#define MIDI_CHN_MASK 0x0f
#define MIDI_OFF_NOTE 0x80
#define MIDI_ON_NOTE 0x90
#define MIDI_CTRL 0xb0
#define MIDI_CH_PROGRAM 0xc0
#define MIDI_TOUCH 0xd0
#define MIDI_BEND 0xe0
#define MIDI_EOX 0xF7
/* controller numbers */
#define MODWHEEL 1
#define BREATH 2
#define FOOT 4
#define PORTARATE 5
#define VOLUME 7
#define SUSTAIN 64
#define PORTASWITCH 65